package com.example.uidemo;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.Button;

public class FirstPage extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_first_page);
        Button open_main = findViewById(R.id.open_main);
        open_main.setOnClickListener(v -> {
            Intent intent = new Intent(FirstPage.this, MainActivity.class);
            startActivity(intent);
        });
    }
}